<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">

<TITLE>SFX commands: Presetup</TITLE>
<link href="style.css" rel="stylesheet" type="text/css">
</HEAD>

<BODY>

<P class="title">SFX commands: Presetup<hr></P>


<P><B><I>Presetup=[&lt;mode&gt;]&lt;program&gt;</I></B></P>

<P>SFX will try to execute <I>&lt;program&gt;</I> before starting
extraction, so <I>&lt;program&gt;</I> must already exist on disk.
The destination folder is set as the current before executing
<I>&lt;program&gt;</I>. You may use this command, for example, to remove
a previous version of program, when installing a new version over the
old one. If a program name contains spaces, it must be enclosed in
quotes.</P>

<p>Program name can be preceded with optional <i>&lt;mode&gt;</i> string
enclosed in &lt; and &gt; brackets. Mode string can include <b>Max</b>,
<b>Min</b> and <b>Hide</b> commands allowing to start the setup program
with maximized, minimized or hidden window.</p>


<h1>Examples</h1>

<ol type="1">
  <li>
    <p>Start 'uninstall.exe /clean' using the default window visibility and size:</p>

    <p class="sample">Presetup=uninstall.exe /clean</p>
  </li>
  <li>
    <p>Start 'uninstall.exe /clean' and hide its window:</p>

    <P class="sample">Presetup=&lt;hide&gt;uninstall.exe /clean</P>
  </li>
</ol>

<h1><B>Notes</B></h1>

<ol type="1">
  <li> SFX module displays "Extract" button instead of "Install"
    if no <i>Setup</i> or <i>Presetup</i> commands are present
    in the archive comment. If you prefer "Install" button, but do not need
    to execute any setup programs, you can add <i>Setup</i> command without
    any parameters.</li>
</ol>

</BODY>
</HTML>
